<!DOCTYPE html>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>体检客户查询</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Microsoft YaHei", sans-serif;
    }

    body {
      background-color: #f5f7fa;
    }

    /* 布局容器 */
    .container {
      display: flex;
      height: 100vh;
    }

    /* 侧边栏 */
    .sidebar {
      width: 220px;
      background-color: #2f3b4b;
      color: #fff;
      display: flex;
      flex-direction: column;
      padding: 20px 0;
    }

    .sidebar-header {
      text-align: center;
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 30px;
    }

    .sidebar-nav {
      list-style: none;
    }

    .sidebar-nav li {
      padding: 12px 20px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .sidebar-nav li:hover {
      background-color: #3c4b5e;
    }

    .sidebar-nav li.active {
      background-color: #4a5b70;
    }

    /* 主内容区 */
    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    /* 顶部栏 */
    .topbar {
      height: 50px;
      background-color: #fff;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding: 0 20px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .topbar .user-info {
      color: #333;
      margin-right: 20px;
    }

    .topbar .logout-btn {
      color: #ff4d4f;
      cursor: pointer;
    }

    /* 内容区 */
    .content {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
    }

    /* 查询表单区域 */
    .search-section {
      background-color: #fff;
      padding: 20px;
      border: 1px solid #e8e8e8;
      border-radius: 4px;
      margin-bottom: 20px;
    }

    .search-row {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
    }

    .search-row label {
      color: #666;
      font-size: 14px;
      width: 80px;
    }

    .search-row input {
      flex: 1;
      padding: 8px;
      border: 1px solid #d9d9d9;
      border-radius: 4px;
      font-size: 14px;
    }

    .search-row button {
      padding: 8px 20px;
      background-color: #1890ff;
      color: #fff;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin-left: 10px;
    }

    /* 客户信息区域 */
    .info-section {
      background-color: #fff;
      padding: 20px;
      border: 1px solid #e8e8e8;
      border-radius: 4px;
      margin-bottom: 20px;
    }

    .info-section h3 {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .info-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 15px;
    }

    .info-table th,
    .info-table td {
      border: 1px solid #e8e8e8;
      padding: 8px 10px;
      text-align: left;
      font-size: 14px;
      color: #666;
    }

    .info-table th {
      background-color: #fafafa;
      font-weight: bold;
    }

    /* 检查项列表 */
    .check-list {
      background-color: #fff;
      padding: 20px;
      border: 1px solid #e8e8e8;
      border-radius: 4px;
    }

    .check-list h3 {
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .check-item {
      border-bottom: 1px solid #e8e8e8;
    }

    .check-header {
      padding: 12px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
    }

    .check-header:hover {
      background-color: #f5f5f5;
    }

    .check-title {
      font-size: 14px;
      color: #333;
    }

    .check-arrow {
      color: #999;
      transition: transform 0.3s;
    }

    .check-details {
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
      background-color: #fafafa;
      border-radius: 4px;
    }

    .check-details.active {
      padding: 15px;
      max-height: 500px;
    }

    .detail-row {
      display: flex;
      margin-bottom: 10px;
    }

    .detail-label {
      width: 100px;
      color: #666;
      font-size: 13px;
    }

    .detail-value {
      flex: 1;
      font-size: 13px;
      color: #333;
    }

    .check-item.active .check-arrow {
      transform: rotate(90deg);
    }
  </style>
</head>

<body>
  <div class="container">
    <!-- 侧边栏 -->
    <aside class="sidebar">
      <div class="sidebar-header">熙心健康体检系统</div>
      <ul class="sidebar-nav">
        <li onclick="window.location.href='shouye.html'">首页</li>
        <li onclick="window.location.href='tijian.html'">体检预约</li>
        <li onclick="window.location.href='yuyue.html'">预约列表</li>
        <li class="active" onclick="window.location.href='chaxun.html'">体检客户查询</li>
      </ul>
    </aside>

    <!-- 主内容 -->
    <div class="main">
      <!-- 顶部栏 -->
      <div class="topbar">
        <div class="user-info">系统管理员：admin</div>
        <div class="logout-btn" onclick="window.location.href='admin.html'">退出</div>
      </div>

      <!-- 内容区 -->
      <div class="content">
        <!-- 查询区域 -->
        <div class="search-section">
          <div class="search-row">
            <label for="orderNo">体检编号</label>
            <input type="text" id="orderNo" placeholder="输入体检编号">
            <button>查询</button>
          </div>
        </div>

        <!-- 客户基本信息区域 -->
        <div class="info-section">
          <h3>客户基本信息</h3>
          <table class="info-table">
            <tbody>
              <tr>
                <th>订单编号</th>
                <td>202110252121505</td>
                <th>手机号码</th>
                <td>231105000000</td>
                <th>姓名</th>
                <td>张一山</td>
              </tr>
              <tr>
                <th>性别</th>
                <td>女</td>
                <th>套餐类型</th>
                <td>23年度健康卫士套餐B</td>
                <th>体检日期</th>
                <td>2023-10-12</td>
              </tr>
            </tbody>
          </table>
        </div>

        <!-- 检查项列表区域 -->
        <div class="check-list">
          <h3>检查录入</h3>
          
          <!-- 一般检查 -->
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">一般检查（身高、体重、血压）</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <div class="detail-row">
                <div class="detail-label">身高</div>
                <div class="detail-value">165 cm</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">体重</div>
                <div class="detail-value">58 kg</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">BMI</div>
                <div class="detail-value">21.3</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">收缩压</div>
                <div class="detail-value">120 mmHg</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">舒张压</div>
                <div class="detail-value">80 mmHg</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">检查时间</div>
                <div class="detail-value">2023-10-12 08:30</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">检查医生</div>
                <div class="detail-value">王医生</div>
              </div>
            </div>
          </div>
          
          <!-- 视力-听力 -->
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">视力-听力</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <div class="detail-row">
                <div class="detail-label">左眼视力</div>
                <div class="detail-value">1.0</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">右眼视力</div>
                <div class="detail-value">1.2</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">左耳听力</div>
                <div class="detail-value">正常</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">右耳听力</div>
                <div class="detail-value">正常</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">检查时间</div>
                <div class="detail-value">2023-10-12 09:15</div>
              </div>
            </div>
          </div>
          
          <!-- 血常规八项 -->
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">血常规八项</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <div class="detail-row">
                <div class="detail-label">白细胞计数</div>
                <div class="detail-value">6.5 ×10^9/L (正常)</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">红细胞计数</div>
                <div class="detail-value">4.2 ×10^12/L (正常)</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">血红蛋白</div>
                <div class="detail-value">125 g/L (正常)</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">血小板计数</div>
                <div class="detail-value">210 ×10^9/L (正常)</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">检查时间</div>
                <div class="detail-value">2023-10-12 08:45</div>
              </div>
              <div class="detail-row">
                <div class="detail-label">检验医生</div>
                <div class="detail-value">李医生</div>
              </div>
            </div>
          </div>
          
          <!-- 其他检查项... -->
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">肝功四项</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <!-- 肝功四项详情 -->
            </div>
          </div>
          
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">肾功三项</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <!-- 肾功三项详情 -->
            </div>
          </div>
          
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">血脂四项</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <!-- 血脂四项详情 -->
            </div>
          </div>
          
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">尿常规八项</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <!-- 尿常规八项详情 -->
            </div>
          </div>
          
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">颈椎侧位片</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <!-- 颈椎侧位片详情 -->
            </div>
          </div>
          
          <div class="check-item">
            <div class="check-header" onclick="toggleCheckItem(this)">
              <div class="check-title">头颅CT</div>
              <div class="check-arrow">></div>
            </div>
            <div class="check-details">
              <!-- 头颅CT详情 -->
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <script>
    // 切换检查项展开/收起
    function toggleCheckItem(header) {
      const item = header.parentElement;
      const details = header.nextElementSibling;
      
      item.classList.toggle('active');
      details.classList.toggle('active');
      
      // 关闭其其他展开的项目
      const allItems = document.querySelectorAll('.check-item');
      allItems.forEach(otherItem => {
        if (otherItem !== item && otherItem.classList.contains('active')) {
          otherItem.classList.remove('active');
          otherItem.querySelector('.check-details').classList.remove('active');
        }
      });
    }
  </script>
</body>

</html>